<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="Adobe RoboHelp - www.adobe.com">
<title>Auto text codes for documents</title>
<link rel="stylesheet" href="userhelp_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
<!--
if (navigator.appName !="Netscape")
{   document.write("<link rel='stylesheet' href='userhelp.css'>");}
//-->
</script>
<style type="text/css">
<!--
table.whs1 { x-cell-content-align:Center; border-spacing:0px; }
tr.whs2 { x-cell-content-align:top; }
td.whs3 { border-left-width:1px; border-left-color:#000000; border-left-style:Solid; border-top-style:Solid; border-top-color:#000000; border-top-width:1px; border-right-width:1px; border-right-color:#000000; border-right-style:Solid; border-bottom-style:Solid; border-bottom-color:#000000; border-bottom-width:1px; padding-right:10px; padding-left:10px; }
p.whs4 { font-weight:bold; }
td.whs5 { border-top-style:Solid; border-top-color:#000000; border-top-width:1px; border-right-width:1px; border-right-color:#000000; border-right-style:Solid; border-bottom-style:Solid; border-bottom-color:#000000; border-bottom-width:1px; padding-right:10px; padding-left:10px; }
td.whs6 { border-left-width:1px; border-left-color:#000000; border-left-style:Solid; border-right-width:1px; border-right-color:#000000; border-right-style:Solid; border-bottom-style:Solid; border-bottom-color:#000000; border-bottom-width:1px; padding-right:10px; padding-left:10px; }
td.whs7 { border-right-width:1px; border-right-color:#000000; border-right-style:Solid; border-bottom-style:Solid; border-bottom-color:#000000; border-bottom-width:1px; padding-right:10px; padding-left:10px; }
ul.whs8 { list-style:disc; }
-->
</style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
<!--
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//-->
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
-->
</style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
<script type="text/javascript" language="javascript" src="whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="whlang.js"></script>
<script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
</head>
<body><script type="text/javascript" language="javascript1.2">
<!--
if (window.gbWhTopic)
{
	if (window.addTocInfo)
	{
	addTocInfo("Creating and modifying documents and dashboards\nCreating and formatting a document\nAdding and editing text and data in a document\nAdding auto text codes to documents\nAuto text codes for documents");
addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");

	}
	if (window.writeBtnStyle)
		writeBtnStyle();

	if (window.writeIntopicBar)
		writeIntopicBar(1);

	if(1)
	{
	
	}

	if (window.setRelStartPage)
	{
	setRelStartPage("MicroStrategy_Web_Help.htm");

		autoSync(1);
		sendSyncInfo();
		sendAveInfoOut();
	}
}
else
	if (window.gbIE4)
		document.location.reload();

//-->
</script>
<h1>Auto text codes for documents</h1>
<p>The following auto text codes allow you to add document variable information 
 to your document.</p>
<p>&nbsp;</p>
<table x-use-null-cells cellspacing="0" class="whs1">
<script language='JavaScript'><!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells cellspacing='0' border='1' bordercolor='black' bordercolorlight='black' bordercolordark='black'>");
//--></script>
<col>
<col>
<col>
<col>


<tr valign="top" class="whs2">
<td class="whs3">
<p class="whs4">Description</td>
<td colspan="1" rowspan="1" class="whs5">
<p class="whs4">Code</td>
<td class="whs5">
<p class="whs4">Sample Output</td>
<td class="whs5">
<p class="whs4">Comments</td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Page Number</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;PAGE}&nbsp;</span></td>
<td class="whs7">
<p>1</td>
<td class="whs7">
<p>The current page number</td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Total Pages&nbsp;</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;NPAGES}</span></td>
<td class="whs7">
<p>12</td>
<td class="whs7">
<p>The total number of pages in the document or in the group's section 
 before page numbering restarts</td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Date/Time </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;DATETIME}</span></td>
<td class="whs7">
<p>11/15/2003 7:10:55 PM</td>
<td class="whs7">
<p>Current date and time of the client computer; when the PDF was generated 
 </td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Current User </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;USER}</span></td>
<td class="whs7">
<p>Jane User</td>
<td class="whs7">
<p>The full name, not Web login, of the user who generates the PDF </td></tr>

<tr valign="top" class="whs2">
<td colspan="1" rowspan="1" class="whs6">
<p>Document Name</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;DOCUMENT}&nbsp;</span></td>
<td colspan="1" rowspan="1" class="whs7">
<p>Regional Sales Summary</td>
<td colspan="1" rowspan="1" class="whs7">
<p>Name of the document as stored in the project </td></tr>

<tr valign="top" class="whs2">
<td colspan="1" rowspan="1" class="whs6">
<p>Document Description </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;DESCRIPTION}</span></td>
<td colspan="1" rowspan="1" class="whs7">
<p>Revenue and profit by region</td>
<td colspan="1" rowspan="1" class="whs7">
<p>Short description of the document</td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Document inbox title </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;TITLE}</span></td>
<td class="whs7">
<p>Regional Sales Summary for Tuesday</td>
<td class="whs7">
<p>The name of the document instance</p>
<p>If you send a document to the History List, you can rename that instance 
 of the document. This auto text code displays that name, rather than the 
 document name stored in the project. </td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>Project Name</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;PROJECT}</span></td>
<td class="whs7">
<p>MicroStrategy Tutorial</td>
<td class="whs7">
<p>The name of the project in which the document is stored </td></tr>

<tr valign="top" class="whs2">
<td colspan="1" rowspan="1" class="whs6">
<p>Prompts</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;PROMPT1&amp;}</span></p>
<p><span class=Code>{&amp;PROMPT2&amp;}</span></p>
<p><span class=Code>{&amp;PROMPTn&amp;}</span></td>
<td colspan="1" rowspan="1" class="whs7">
<p>South (for example, if prompt1 is for the attribute Region)</td>
<td colspan="1" rowspan="1" class="whs7">
<p>The user's answers to the prompts in the document; identified by number</td></tr>

<tr valign="top" class="whs2">
<td colspan="1" rowspan="1" class="whs6">
<p>Document Execution Time</td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;EXECUTIONTIME}</span></td>
<td colspan="1" rowspan="1" class="whs7">
<p>11/15/2008 7:11:15 PM</td>
<td colspan="1" rowspan="1" class="whs7">
<p>The date and time the document was executed</p>
<p>&nbsp;</td></tr>

<tr valign="top" class="whs2">
<td colspan="1" rowspan="1" class="whs6">
<p>Prompt Details </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;PROMPTDETAILS}</span></td>
<td colspan="1" rowspan="1" class="whs7">
<p>Prompt 1: Region prompt</p>
<p>Northwest, Southwest</p>
<p>Prompt 2: Year</p>
<p>Year (ID) = 2007</td>
<td colspan="1" rowspan="1" class="whs7">
<p>Details for all the prompts in the document</p>
<p>You can define how this auto text code is displayed (for example, if 
 the prompt name is shown). </td></tr>

<tr valign="top" class="whs2">
<td class="whs6">
<p>MicroStrategy web server </td>
<td colspan="1" rowspan="1" class="whs7">
<p><span class=Code>{&amp;WEBSERVER}</span></td>
<td class="whs7">
<p>http://localhost:8080</p>
<p>/MicroStrategy/servlet</p>
<p>/mstrWeb</td>
<td class="whs7">
<p>Path of the web server being used, if the document is executed in MicroStrategy; 
 otherwise, the value in project configuration</td></tr>
<script language='JavaScript'><!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table></table><table>");
//--></script>
</table>
<p>&nbsp;</p>
<p><span style="font-weight: bold;"><B>Notes</B></span>: </p>
<ul type="disc" class="whs8">
	
<li class=p><p>If the auto text code<span class=Code> {&amp;PROMPTn&amp;}</span> 
 is used, but n is greater than the number of prompts in the document, 
 the code cannot be replaced with pertinent information. Therefore, the 
 code itself is displayed in the PDF. </p></li>
	
<li class=p><p>The Date and Time and Document execution time can be 
 formatted like any other date and time text field, using the Format dialog 
 box on the Number tab. You can display only the date without the time, 
 you can print the month name rather than the number, and so on.</p></li>
	
<li class=p><p>To differentiate between Date and Time and Document 
 execution time, run a document and send it to your History List. Each 
 time you open the document from your History List, the PDF is regenerated. 
 The Date and Time change each time, but the Document execution time does 
 not change.</p></li>
</ul>
<script type="text/javascript" language="javascript1.2">
<!--
highlightSearch();
if (window.writeIntopicBar)
	writeIntopicBar(0);
if(0)
{

}
//-->
</script>
</body>
</html>
